﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LL1
{
    class Plane : Vehicle, IFlyable
    {
        private string name;
        public string Name { get { return this.name; } set { this.name = value; } }
        public Plane(string Name)
        {
            this.Name = Name;
        }

        public void Fly()
        {
            Console.WriteLine("{0}会飞", this.Name);
        }

        public void Land()
        {
            Console.WriteLine("{0}降落土地", this.Name);
        }

        public void TakeOff()
        {
            Console.WriteLine("{0}起飞", this.Name);
        }
        public void CarryPassange()
        {
            Console.WriteLine("{0}运送旅客", this.Name);
        }
    }
}
